
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Random;
import java.util.logging.Level;
import java.util.logging.Logger;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Patrick
 */
public class Generator {

    public static void main(String[] args) {
        try {
            Connection con = CrombManager.getConnection("localhost:3306","crombz", "cromb", "garett");
            Random r = new Random();
            for (int i = 0; i < 100000; i++) {
                double lon = (r.nextInt(360000) / 1000d) - 180d;
                double lat = (r.nextInt(180000) / 1000d) - 90d;
//                CrombManager.putCromb(con, lon, lat, "CrombMAster", "A Short message");
            }

            con.close();
        } catch (SQLException ex) {
            Logger.getLogger(Generator.class.getName()).log(Level.SEVERE, null, ex);
        }

    }
}
